/*
 * DrawSimpleObject.h
 *
 *  Created on: Oct 11, 2010
 *      Author: Thanh
 */

#ifndef DRAWSIMPLEOBJECT_H_
#define DRAWSIMPLEOBJECT_H_

#include <gl/glut.h>
#include <fstream>
#include <iostream>
#include <string>
#include <strstream>
#include <vector>

#include "imageloader.h"
#include "Vertexes.h"

using namespace std;

class SimpleObject {
public:
	SimpleObject();
	virtual ~SimpleObject();
	void readData();
	void draw();

private:
	string __dataPath;
	vector<Vertexes> __parallelepipeds;
	GLuint __textureId;
	void readVertexes(char*);
	void readVertexes2(char*);
	void drawParallelepiped(Vertexes vertexes);
	GLuint loadTexture(Image* image);
};

#endif /* DRAWSIMPLEOBJECT_H_ */
